<?php

namespace App\Service\System;

use App\Dao\System\SystemChangelogDao;
use Hyperf\Di\Annotation\Inject;

class ChangelogService
{
    /**
     * @Inject()
     * @var SystemChangelogDao
     */
    protected $systemChangelogDao;

    public function lists($params)
    {
        $data = $this->systemChangelogDao->lists($params);
        return $data;
    }

    public function add(\App\Tool\Collect $params)
    {
        return $this->systemChangelogDao->add($params);
    }

    public function del(int $id)
    {
        return $this->systemChangelogDao->del($id);
    }

    public function edit(int $id, \Hyperf\Utils\Collection $params)
    {
        return $this->systemChangelogDao->edit($id, $params);
    }
}